package org.boot.fast.dao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.boot.fast.dao.entity.FastApiConfigDO;

import java.util.List;
import java.util.Map;

public interface FastApiConfigService extends IService<FastApiConfigDO> {

    /**
     * 生成指定表的所有API，并返回生成的api信息
     * @param table
     */
    List<FastApiConfigDO> generateAllApi(String version, String table, String sysModule);
    FastApiConfigDO generateInsertApi(String version, String table, String apiKey, String sysModule);
    FastApiConfigDO generateInsertBatchApi(String version, String table, String apiKey, String sysModule);
    FastApiConfigDO generateDeleteApi(String version, String table, String apiKey, String sysModule);
    FastApiConfigDO generateDeleteBatchApi(String version, String table, String apiKey, String sysModule);
    FastApiConfigDO generateUpdateApi(String version, String table, String apiKey, String sysModule);
    FastApiConfigDO generateQueryApi(String version, String table, String apiKey, String sysModule);


}
